package com.dilidili.mapper;

import com.domain.Video;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Author Miracle GuGuaGuGua
 * @Date 2022/4/1 15:28
 * @Version 1.0
 */
public interface VideoSharpnessMapper {
    @Insert("insert into video_sharpness values(null,#{str},#{i},#{videoId})")
    void add(@Param("str") String str, @Param("i") int i, @Param("videoId") Long videoId);

   List<Map> selectVideoTagByVideoId(@Param("id") Long id);


   @Delete("delete from  video_sharpness where video_id = #{videoId} ")
    void delByVideoId(Long videoId);
}
